var myMedia = function()
{
	this.videoArr=[];
	this.audioArr=[];
	this.audiooutArr=[];
	this.i_video = 0;
	this.i_audio = 0;
	this.i_audioout = 0;
	this.devices;
	this.ready = false;
	
}

myMedia.prototype.init = function(gotDevices)
{
	myMedia.prototype.ready = false;
	function getDevice(){
		navigator.mediaDevices.enumerateDevices().then(gotDevices).catch(err=>{console.log(err);});
	}
	
	getDevice();
}


